
<form action="{:url()}" method="post" data-auto="true" class="layui-form layui-card" data-table-id="BillSettingTable">
  <div class="layui-card-body">
    <div class="layui-form-item">
      <label class="layui-form-label label-required-next">下单时间</label>
      <div class="layui-input-block">
        <select name='buy_time' class='layui-select'>
          <option value="10:00:00">10:00:00</option>
          <option value="17:00:00">17:00:00</option>
          <option value="22:00:00">22:00:00</option>
        </select>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">盈亏设置</label>
      <div class="layui-input-block">
        <input type="radio" name="is_win" value="1" title="盈利" {if $vo.is_win==1 }checked{/if}> <!-- 默认选中“开启” -->
        <input type="radio" name="is_win" value="0" title="亏顺" {if $vo.is_win==0 }checked{/if}>
        <p class="help-block"><b>必选</b></p>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">盈亏比例%</label>
      <div class="layui-input-block">
        <input name="profit_percent" value="{$vo.profit_percent|default=''}"  class="layui-input" type="number">
        <p class="help-block"><b>必选必须是数字</b></p>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">合约时长</label>
      <div class="layui-input-block">
        <input name="contract_time" value="{$vo.contract_time|default=''}"  class="layui-input" type="number">
        <p class="help-block"><b>必选</b>必须是数字，是按照分钟计算</p>
      </div>
    </div>
  </div>
  <div class="hr-line-dashed"></div>
  <input type='hidden' value='{$vo.id|default=0}' name='id'>
  <div class="layui-form-item text-center">
    <button class="layui-btn" type='submit'>确定</button>
    <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消吗？" data-close>取消</button>
  </div>
</form>

